﻿using Microsoft.Office.Server.UserProfiles;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Validation.sp2010.Helper;

namespace Validation.sp2010.Classes
{
   

    [Serializable]
    public class StepWF
    {
        #region common properties
        public TypeStep TypeStep { get; set; }
        public StepPrincipal Actor { get; set; }

        public string Title { get; set; }

        public string Object { get; set; }
        public string ObjectDisplay { get; set; }

        public string Body { get; set; }
        public string BodyDisplay { get; set; }


        //Ordre
        public int Sequence { get; set; }

        // if the current step is the finale step
        public bool IsFinal { get; set; }

        //if the current step is final step
        public bool IsInitial { get; set; }


        #endregion

        #region task properties

        public bool WithExtension { get; set; }
        public bool ForceValidation { get; set; }

        public bool NotifyUserByMail { get; set; }

        public bool ProlongedExtension { get; set; }
        //todo delete
        //public OptionValidation IfValidate { get; set; }
        //public OptionValidation IfRefuse { get; set; }


        //Sequence of the next step if validated : O ==> Terminate
        public int NextStepValidation { get; set; }

        //Sequence of the next step if refused O ==> Terminate
        public int NextStepRefuse { get; set; }

        #endregion

        #region mail properties

        public StepPrincipal CC_Mail { get; set; }

        #endregion

    
    
    }

    


   
   
}
